#ifndef _IM_SERVER_NOTIFY_PRESENCE_TASK_H_
#define _IM_SERVER_NOTIFY_PRESENCE_TASK_H_

#include <string>
#include "rpc_thread_manager.h"
#include "ImServiceCommon_types.h"

namespace imserver {

using apache::thrift::concurrency::Runnable;

class NotifyPresenceTask : public Runnable {
 public:
  NotifyPresenceTask(const int64_t uid, const std::string& session, const SessionType::type type) 
      : uid_(uid), session_(session), type_(type) {
  }

  virtual void run();
 private:
  int64_t uid_;
  std::string session_;
  SessionType::type type_;
};

}

#endif // _IM_SERVER_NOTIFY_PRESENCE_TASK_H_

